<?php
class Zend_View_Helper_LocationOfDish extends Zend_View_Helper_Abstract
{


	public function deliveryOfLocation(Model_Delivery $del)
	{
		$name=$del->getLocation()->getName();
		$address=$del->getLocation()->getAddress();
		$quantity=$del->getQuantity();
		$price=$del->getPrice();
		$image=$del->getLocation()->getImage();
		$link= "/location/detail";
		$link=$link.'?id='.$del->getLocation()->getId();
		$id=$del->getId();
		$result='
				<div class="LocationOfDish">
					<img src="'.$image.'"></img>
					<div class="locationInfo">
						<span class="locationTitle-small"><a href="'.$link.'">'.$name.'</a></span> <br />
						<span class="locationAddress-small">'.$address.'</span> <br />
						Price: <span class="price">'.$price.'đ</span> <br />
						Quantity: <span class="quantity">'.$quantity.'</span> <br />
					</div>
					<form method="get" action=""  class="frm"  id="frm'.$id.'">
						<button type="submit" id="'.$id.'"  class="buttonbuy">Buy</button>
						<br/>
						Enter quantity to buy: <input type="text" class="txtNumber" id="quantity" name="quantity" />
						<input type="hidden" class="txtNumber" id="id" value="'.$id.'" name="id" />
					</form>
			
				</div>
				';

		return $result;
	}



}